<% include ../header.ejs %>


<link rel="stylesheet" href="/stylesheets/app/address/address.css">
<script src="/lib/echarts/echarts.common.min.js"></script>

<header data-am-widget="header" data-am-sticky class="am-header am-header-default" id="appTemplates-Nav">

    <div class="am-header-left am-header-nav">
        <a href='javascript:history.go(-1)' class="">
            <img class="am-header-icon-custom" src="data:image/svg+xml;charset&#x3D;utf-8,&lt;svg xmlns&#x3D;&quot;http://www.w3.org/2000/svg&quot; viewBox&#x3D;&quot;0 0 12 20&quot;&gt;&lt;path d&#x3D;&quot;M10,0l2,2l-8,8l8,8l-2,2L0,10L10,0z&quot; fill&#x3D;&quot;%23fff&quot;/&gt;&lt;/svg&gt;" alt=""/>
        </a>
    </div>
    <h1 class="am-header-title">
        <a href="#title-link" class="" id="Typeface-whitecolor">统计</a>
    </h1>

</header>


<div id="main1" style="width: 100%;height:400px;"> </div>





<script type="text/javascript">
    // 基于准备好的dom，初始化echarts实例
    var myChart1 = echarts.init(document.getElementById('main1'));



    option1 = {
        title: {
            text: '<%= evaluate.sellerName%>',
            subtext: ''
        },
        tooltip: {
            trigger: 'axis',
            axisPointer: {
                type: 'shadow'
            }
        },
        legend: {
            data: ['本月', '上月']
        },
        grid: {
            left: '3%',
            right: '4%',
            bottom: '3%',
            containLabel: true
        },
        xAxis: {
            type: 'value',
            interval:1,
            boundaryGap: [0, 2]
        },
        yAxis: {
            type: 'category',
            data: ['路演','调研','电话会议','策略会','晨会']
        },
        series: [
            {
                name: '本月',
                type: 'bar',
                data: [<%= evaluate.roadshowThisCount%>, <%= evaluate.surveyingThisCount%>, <%= evaluate.teleconferenceThisCount%>, <%= evaluate.strategymeetingThisCount%>, <%= evaluate.mconferenceThisCount%>]
            },
            {
                name: '上月',
                type: 'bar',
                data: [<%= evaluate.roadshowPreCount%>, <%= evaluate.surveyingPreCount%>, <%= evaluate.teleconferencePreCount%>, <%= evaluate.strategymeetingPreCount%>, <%= evaluate.mconferencePreCount%>]
            }
        ]
    };

    // 使用刚指定的配置项和数据显示图表。
    myChart1.setOption(option1);


    // 基于准备好的dom，初始化echarts实例
    var myChart2 = echarts.init(document.getElementById('main2'));

</script>

<% include ../footer.ejs %>